<div class='fui-page  fui-page-current'>
    <div class="fui-header">
        <div class="fui-header-left">
            &nbsp;
        </div>
        <div class="title">核销台</div>
        <div class="fui-header-right">&nbsp;</div>
    </div>
    <div class='fui-content navbar'>
        <div ng-if="pagedata.store" class='fui-list-group'>
            <div class='fui-list'>
                <div class='fui-list-media'><i class='icon icon-shop'></i></div>
                <div class='fui-list-inner'>
                    <div class='title'>{{pagedata.store.title}}</div>
                </div>
            </div>

        </div>
        <div class='fui-list-group'>
            <div class='fui-list'>
                <div class='fui-list-media'><img ng-src='{{tomedia(pagedata.member.avatar)}}' /></div>
                <div class='fui-list-inner'>
                    <div class='title'>{{pagedata.saler.name}}</div>
                    <div class='text'>{{pagedata.member.nickname}}</div>
                </div>
            </div>

        </div>
        <div class='fui-cell-group'>
            <div class='fui-cell-title'>请输入核销码</div>
            <div class='fui-cell'>

                <div class='fui-cell-info'>
                    <input type='text' class='fui-input' id='verifycode' ng-model="pagedata.verifycode" placeholder='请输入核销码'/>
                </div>
                <div class='fui-cell-remark noremark'>
                    <div ng-click="access_json('/verify.detail//verifycode='+pagedata.verifycode)" class='btn btn-danger btn-sm btn-search'>查询核销信息</div>
                </div>
            </div>
        </div>
		<div class="fui-list jump text-center">
			<div ng-click="pagedata.scancode()" style="width:100%">
					 <div><i class="icon jinyunicon icon-saoyisao1" style="font-size:3rem;color:#63BE72"></i></div>
					 <div class="subtitle" style="color: #63BE72;font-size:0.8rem">或点击扫码，扫客户二维码！</div>
			</div>
		</div>
    </div>

</div>
<script language="javascript">
scope.pagedata.scancode=function () {
			console.log('scanQRCodeOK');
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					location.href = result;
				}
			});
}
</script> 